package com.bappi.utils;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;

public class ImageUtils {
	

	public static final Bitmap getResizeImage(Bitmap bitmap, int width,
			int height) {
		Bitmap ret = Bitmap
				.createBitmap(width, height, Bitmap.Config.ARGB_8888);
		Canvas comboImage = new Canvas(ret);
		Rect r1 = new Rect(0, 0, width, height);
		Rect r2 = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
		comboImage.drawBitmap(bitmap, r2, r1, null);
		comboImage.save();
		return ret;
	}
}
